import java.util.regex.Pattern;

import StringComparision.StringDistances;

// http://www.javaprogrammingforums.com/whats-wrong-my-code/222-longest-match-substring-between-two-strings.html
public class test2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		test2 t2 = new test2();
		t2.Run();
		

	}
	
	
	
	public void Run()
	{
		StringDistances sd = new StringDistances();
		String val1 = "f1@!@f2@!@f3@!@f4@!@";
		String val2 = "f1@!@f2@!@f3@!@f4@!@";
		String val3 = "f1@!@f2@!@f3@!@f4@!@f5@!@";
		String val4="f0@!@f1@!@f2@!@f3@!@f5@!@";
		String val5="f1@!@f2@!@f3@!@f4@!@f5@!@";
		String val6="f1@!@f2@!@f3@!@f4@!@f6@!@f7@!@f8@!@";
		
		String tst1 = "f3";
		String tst2 = "f2";
		String tst3 = "f3@!@";
		String tst4 = "f2@!@";
		String tst5 = "@!@f2@!@";
		String tst6 = "@!@f2@!@";
		

	
	//	System.out.println(sd.getBrodieNumberSubStringMatches(sd.getBrodieLongestSubstring(val1,val2)));
	//	System.out.println(sd.getBrodieNumberSubStringMatches(sd.getBrodieLongestSubstring(val3,val4)));
	//	System.out.println(sd.getBrodieNumberSubStringMatches(sd.getBrodieLongestSubstring(val5,val6)));
	//	System.out.println(sd.getBrodieNumberSubStringMatches(sd.getBrodieLongestSubstring(tst1,tst2)));
	//	System.out.println(sd.getBrodieNumberSubStringMatches(sd.getBrodieLongestSubstring(tst3,tst4)));
	//	System.out.println(sd.getBrodieNumberSubStringMatches(sd.getBrodieLongestSubstring(tst5,tst6)));	
	}
	
	
	

}
